---
title: clsAttorneyWorkerAssignment
summary: API reference for clsAttorneyWorkerAssignment.
status: draft
owner: SAIF Case Management team
last_reviewed: 2026-08-21
library: SAIF.Business.Claim.Legal
reference_type: embedded
---

# clsAttorneyWorkerAssignment

`clsAttorneyWorkerAssignment` represents one row assigning an attorney to a worker SSN for a bounded effective period.* It wraps `ATTORNEY_WORKER_ASSIGNMENT` persistence, exposes the attorney display name joined at retrieval time, and includes helpers for open-ended expiration handling.

## Purpose
- Stores the worker SSN, attorney employee ID, and active date range for one worker-assignment row.
- Provides name resolution and null helpers used when maintaining open-ended or display-oriented assignment data.

## Context
- Namespace: `SAIF.Business.Claim.Legal.TableMaint`
- Assembly/package: `SAIF.Business.Claim.Legal`

## Public members

| Member | Kind | Type | Purpose |
|---|---|---|---|
| AttorneyWorkerAssgnSeqNum | Property | `Decimal` | Unique sequence number for the `ATTORNEY_WORKER_ASSIGNMENT` row. |
| WorkerSsn | Property | `String` | Worker SSN attached to the attorney-assignment row. |
| EffectiveDate | Property | `Date` | Date the row becomes effective. |
| ExpirationDate | Property | `Nullable(Of Date)` | Date the row stops applying; when cleared, the row remains open-ended. |
| ExpirationDateSort | Property | `Date` | Non-null helper value used when list views sort by expiration date. |
| AttorneyEmployeeID | Property | `String` | Employee ID of the attorney attached to this row. |
| AttorneyName | Property | `String` | Display name resolved for the selected attorney. |
| Create() | Protected Method | `—` | Obtains the next `Attorney_Worker_Assignment_SEQ` value for a new worker-assignment row. |
| BeforeRetrieve(inPortalRequest As IPortalRequest) | Protected Method | `—` | Builds the retrieve request used to load this worker-attorney assignment row. |
| AfterRetrieve(inPortalRequest As IPortalRequest) | Protected Method | `IBusinessObject` | Copies the retrieved result-set row into this worker-attorney assignment row and marks it as persisted. |
| BeforeInsert(inPortalRequest As IPortalRequest) | Protected Method | `—` | Adds the current field values to the insert request for `ATTORNEY_WORKER_ASSIGNMENT`. |
| AfterInsert(InPortalRequest As IPortalRequest) | Protected Method | `—` | Verifies that one row was inserted and marks the object persisted; records an error when the insert fails. |
| BeforeUpdate(inPortalRequest As IPortalRequest) | Protected Method | `—` | Adds the current field values to the update request for `ATTORNEY_WORKER_ASSIGNMENT`. |
| AfterUpdate(InPortalRequest As IPortalRequest) | Protected Method | `—` | Verifies that one row was updated and marks the object persisted; records a contention error when the update fails. |
| BeforeDelete(inPortalRequest As IPortalRequest) | Protected Method | `—` | Builds the delete request for `ATTORNEY_WORKER_ASSIGNMENT` using this row's key values. |
| AfterDelete(InPortalRequest As IPortalRequest) | Protected Method | `—` | Verifies that one row was deleted and resets the object to a new state; records a contention error when the delete fails. |
| SetExpDateNull() | Method | `—` | Clears the stored expiration date so the row becomes open-ended. |
| SetAttorneyEmplidNull() | Method | `—` | Clears the stored attorney employee ID value. |
| IsExpDateNull() | Method | `Boolean` | Reports whether the stored expiration date is currently empty. |
| IsAttorneyEmplidNull() | Method | `Boolean` | Reports whether the stored attorney employee ID value is currently empty. |
| Load(inDataPortalInfo As IDataPortalInfo, Row As clsResultSet.DataRow) | Protected Friend Method | `—` | Loads this worker-attorney assignment row from a retrieved `clsResultSet.DataRow` and attaches criteria/data-portal state. |
| New() | Protected Friend Constructor | `—` | Framework constructor used when the data portal creates or materializes an instance. |
| New(inDataPortalInfo As IDataPortalInfo) | Protected Friend Constructor | `—` | Framework constructor that prepares the instance with data-portal context before creation or loading. |
| NewAttorneyWorkerAssignment(inDataportal As IDataPortalInfo) | Shared Method | `clsAttorneyWorkerAssignment` | Creates a new unsaved worker-attorney assignment row through the data portal so framework initialization runs. |
| GetAttorneyWorkerAssignment(inDataportal As IDataPortalInfo) | Shared Method | `clsAttorneyWorkerAssignment` | Retrieves a worker-assignment object through the type's criteria-defined retrieval path.* |
| AddBusinessRules() | Protected Method | `—` | Registers business rules for the type; this implementation does not add custom rules. |

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

## Sources

- `SAIF.Business.Claim.Legal\TableMaint\clsAttorneyWorkerAssignment.vb`
